
import { MongooseFactory } from "../kalend";
import { Schema } from "mongoose";

/** 入驻快讯 */
const schema = MongooseFactory.Schema({
    merchantid: {
        type: Schema.Types.ObjectId,
        ref: "merchant"
    },
    createuser: {
        type: Schema.Types.ObjectId,
        ref: "platform_user"
    },
    modifyuser: {
        type: Schema.Types.ObjectId,
        ref: "platform_user"
    },
    modifytime: {
        type: Date
    },
    createtime:{
        type: Date
    },
    //新闻标题
    newstitle:{
        type:String
    },
    //缩略图
    newsthumbnail:{
        type:String
    },
    //正文主图
    newspic:{
        type:String
    },
    //新闻正文
    newscontent:{
        type:String
    },
    //餐厅名称
    merchantName:{
        type:String
    },
    
    //餐厅标签
    merchantlabel:[{
        type: String
    }],
});



export const platform_joninnewsModel = MongooseFactory.Model("platform_joninnews", schema);